#ifndef UUID_BBBAE3BFA1B54993E32E558CD5EC2680
#define UUID_BBBAE3BFA1B54993E32E558CD5EC2680

#if defined(WIN32) || defined(WIN64)
#define NOMINMAX
#include <windows.h>

#pragma comment(lib, "opengl32.lib")
#pragma comment(lib, "dinput8.lib")
#pragma comment(lib, "dxerr.lib")
#pragma comment(lib, "winmm.lib")
#pragma comment(lib, "dxguid.lib")
#pragma comment(lib, "delayimp.lib")
#endif

#ifdef __APPLE__
#include <OpenGL/gl.h>
#else
#include <GL/gl.h>
#endif

#include "../gvl/support/platform.hpp"
#include <stdio.h>

#ifdef __cplusplus
extern "C" {
#endif

GVL_INLINE void flip_check_gl_error_(char const* file, int line)
{
	GLenum err = glGetError();
	if(err != GL_NO_ERROR)
		fprintf(stderr, "%s:%d: GL error %d\n", file, line, err);
}

#define flip_check_gl_error() \
	flip_check_gl_error_(__FILE__, __LINE__)
	
#ifdef __cplusplus
} // extern "C"
#endif

#endif // UUID_BBBAE3BFA1B54993E32E558CD5EC2680
